﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.DreamTour.BLL.IService;
using ZhouYu.DreamTour.DAL.IRepository;
using ZhouYu.DreamTour.Model;
using ZhouYu.DreamTour.ViewModel;

namespace ZhouYu.DreamTour.BLL.Service
{
    public class PaymentRecordService : IPaymentRecordService
    {
        private IPaymentRecordRepository _paymentRecordRepository;
        public PaymentRecordService(IPaymentRecordRepository paymentRecordRepository)
        {
            _paymentRecordRepository = paymentRecordRepository;
        }
        #region 支付成功时添加支付记录
        /// <summary>
        /// 支付成功时添加支付记录
        /// </summary>
        /// <param name="paymentRecord"></param>
        /// <returns></returns>
        public ResponseResult AddPaymentRecordInfo(PaymentRecord paymentRecord)
        {
            ResponseResult responseReuslt = new ResponseResult();
            responseReuslt.Success=_paymentRecordRepository.AddPaymentRecordInfo(paymentRecord);
            return responseReuslt;
        }
        #endregion
    }
}
